package com.onlyxiahui.extend.query.hibernate.syntax.annotation;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Description <br>
 * Date 2020-06-03 09:08:58<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */

@Documented
@Retention(RUNTIME)
@Target({ FIELD })
@Repeatable(Brackets.class)
public @interface Bracket {

	/**
	 * 
	 * 括号分组<br>
	 * Date 2020-06-03 09:11:57<br>
	 * 
	 * @return
	 * @since 1.0.0
	 */
	String group() default "default";

	/**
	 * 
	 * 括号中独占<br>
	 * Date 2020-06-03 09:54:44<br>
	 * 
	 * @return
	 * @since 1.0.0
	 */
	boolean alone() default true;
}
